<template>
  <div>
    <el-radio-group v-model="fontType" size="small">
      <el-radio-button label="fa-thin"></el-radio-button>
      <el-radio-button label="fa-solid"></el-radio-button>
      <el-radio-button label="fa-regular"></el-radio-button>
      <el-radio-button label="fa-light"></el-radio-button>
      <el-radio-button label="fa-duotone"></el-radio-button>
    </el-radio-group>
    <div class="row fontawesome-icon-list">
      <ul class="icon-list">
        <li v-for="(item,index) in list" :key="index"><span><i class="fa" :class="fontType+' fa-'+ item"></i><span class="icon-name">fa {{fontType}} fa-{{item}}</span></span></li>
      </ul>
    </div>
  </div>
  
</template>

<script>
  import {fontawesome_build} from './fontawwsomeCollects.js'
export default {
  name:"FontAwesomeBuild",
  data() {
    return {
      fontType:"fa-light",
      list: fontawesome_build
    }
  },
}
</script>

<style  scoped>
  .fontawesome-icon-list {
      margin-top: 2px;
  }
  .row {
      margin-right: -15px;
      margin-left: -15px;
  }
  ul:not(.timeline) {
      margin: 10px 0;
      padding: 0 0 0 20px;
      font-size: 14px;
      color: #5e6d82;
      line-height: 2em;
  }
  ul.icon-list {
      overflow: hidden;
      list-style: none;
      padding: 0!important;
      border: 1px solid #eaeefb;
      border-radius: 4px;
  }
  .icon-list li {
      float: left;
      width: 16.66%;
      text-align: center;
      height: 120px;
      line-height: 120px;
      color: #666;
      font-size: 13px;
      border-right: 1px solid #eee;
      border-bottom: 1px solid #eee;
      margin-right: -1px;
      margin-bottom: -1px;
  }
  .icon-list li:after, .icon-list li span {
      display: inline-block;
      vertical-align: middle;
  }
  .icon-list li span {
      line-height: normal;
      font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
      color: #99a9bf;
      transition: color .15s linear;
  }
  .icon-list li i {
      display: block;
      font-size: 32px;
      margin-bottom: 15px;
      color: #606266;
      transition: color .15s linear;
  }
  .icon-list li .icon-name {
      display: inline-block;
      padding: 0 3px;
      height: 1em;
  }
  </style>